package com.szsh.aiot.hsm.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "wap-login")
public class WapLoginProperties {

    /** appId */
    private String appId;
    /** appSecret */
    private String appSecret;
    /***/
    private String clientType;
    /** 用于重定向接口的显示说明  */
    private String format;
    /***/
    private String version;
    /** 天翼账号登录地址 */
    private String loginUrl;
    /** 天翼账号退出地址 */
    private String logOutUrl;
    /** 模板ID，若需新增模板，需提供模板给予综合平台进行模板配置，默认：0 */
    private String templateId;
    /** 其他登录类型 */
    private String loginType;
    /** 遇到问题链接 */
    private String qaUrl;
    /** 其他登录方式链接(免密失败后跳转的自定义链接) */
    private String otherLoginUrl;
    /** 登录成功返回地址 */
    private String loginReturnUrl;
    /** 退出成功返回地址 */
    private String logOutReturnUrl;


    /** 通过code获取accessToken的url */
    private String accessTokenUrl;
    /** 授权类型 */
    private String grantType;
    /** 请求参数格式 */
    private String paramFormat;


    // 请求API资源，获取用户信息的接口url
    private String userInfoUrl;
    /** rsa私有密钥 */
    private String privateKey;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getLogOutUrl() {
        return logOutUrl;
    }

    public void setLogOutUrl(String logOutUrl) {
        this.logOutUrl = logOutUrl;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getQaUrl() {
        return qaUrl;
    }

    public void setQaUrl(String qaUrl) {
        this.qaUrl = qaUrl;
    }

    public String getOtherLoginUrl() {
        return otherLoginUrl;
    }

    public void setOtherLoginUrl(String otherLoginUrl) {
        this.otherLoginUrl = otherLoginUrl;
    }

    public String getLoginReturnUrl() {
        return loginReturnUrl;
    }

    public void setLoginReturnUrl(String loginReturnUrl) {
        this.loginReturnUrl = loginReturnUrl;
    }

    public String getLogOutReturnUrl() {
        return logOutReturnUrl;
    }

    public void setLogOutReturnUrl(String logOutReturnUrl) {
        this.logOutReturnUrl = logOutReturnUrl;
    }

    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public String getParamFormat() {
        return paramFormat;
    }

    public void setParamFormat(String paramFormat) {
        this.paramFormat = paramFormat;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
